export default {
  setUsername(state, username) {
    state.username = username
  },
  setUserId(state, userId) {
    state.userId = userId
  },
  setToken(state, token) {
    state.token = token
  },
  setRole(state, role) {
    state.role = role
  },
  quit(state) {
    state.username = '';
    state.userId = '';
    state.token = '';
    state.role = '';
  }
}